
import java.util.*;
import java.io.*;

public class FreeCell {

	static int checkPer(int i){//100とiの最大公約数を求め、それで100を割る
		int number = i;
		int value = 100;
		int check;
		if(i<1 || i>100)return -1;
		while(true){
			check = number%value;
			if(check!=0){
				number=value;
				value=check;
			}else break;
		}
		value = 100/value;
		return value;
	}
	
	public static void main(String args[]){
		try{
			Scanner sc = new Scanner(new File(""));//ファイル名
			PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(new File("solve.in"))));//出力ファイル
			int T = sc.nextInt();
			for(int i=1;i<=T;i++){
				int max = sc.nextInt();
				int dper = sc.nextInt();
				int gper = sc.nextInt();
//				int dnum = checkPer(dper);
//				int gnum = checkPer(gper);
				String ok = "Possible";
				String out = "Broken";

//				for(int j=dnum;j<max;j+=dnum){
//					int x = j*dper/100;
//					int y = j-x;
//					int a = gper/(100/gnum);
//				}
				if(gper==100  && dper!=100)pw.println("Case #"+i+": "+out);
				else pw.println("Case #"+i+": "+ok);
			}
			pw.close();
		}catch(FileNotFoundException e){
			System.out.println(e);
		}catch(IOException e){
			System.out.println(e);			
		}
	}
	
}
